<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Models\OrderHistory;

class EvaluateController extends Controller
{
	   // 检测用户是否登录，无登录跳转到登录页面
    public function __construct()
    {
       $this->middleware('auth');
    }
     //已取消订单列表
    public function index(){

    	//取出订单
		$order = OrderHistory::where('serve_status','5')
								->LeftJoin('serves','order_histories.sid','=','serves.id')
								->select('order_histories.*','serves.title','serves.commit','serves.path')
								->OrderBy('id','desc')->get();

    	return view('staticpages.order.evaluate',compact('order'));
    }
}
